package com.mairuide.phone.calltype;

import com.mairuide._frame.base.BaseController;
import com.mairuide.entity.Result;
import com.mairuide.entity.StatusCode;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by 敲代码的卡卡罗特
 * on 2019/1/3 11:12.
 */
@Controller
@CrossOrigin
@RequestMapping("calltype")
public class CallTypeController extends BaseController {
    @Resource
    private CallTypeService callTypeService;

    @ResponseBody
    @RequestMapping(value="/list")
    public Result detailSearch(){
        return  new Result(true, StatusCode.OK,"查询成功",  callTypeService.getList());
    }
}
